Skip to content

Comments

COMP: Address compile issue with mingw#206

Merged
malaterre merged 1 commit intomalaterre:masterfrom
blowekamp:fix_mingw_aligned
Feb 24, 2026
Merged

COMP: Address compile issue with mingw#206
malaterre merged 1 commit intomalaterre:masterfrom
blowekamp:fix_mingw_aligned

Conversation

@blowekamp
Copy link
Contributor

Use _aligned_malloc with mingw compiler.

[ 58%] Building C object .../Utilities/gdcmext/mec_mr3_io.c.obj C:/ITK/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmext/mec_mr3_io.c: In function 'aligned_alloc_impl': C:/ITK/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmext/mec_mr3_io.c:320:15: error: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration]
320 | int error = posix_memalign(&allocPtr, alignment, size);

Use _aligned_malloc with mingw compiler.

[ 58%] Building C object .../Utilities/gdcmext/mec_mr3_io.c.obj
C:/ITK/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmext/mec_mr3_io.c: In function 'aligned_alloc_impl':
C:/ITK/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmext/mec_mr3_io.c:320:15: error: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration]
  320 |   int error = posix_memalign(&allocPtr, alignment, size);
@malaterre malaterre merged commit 24a6090 into malaterre:master Feb 24, 2026
3 checks passed
@malaterre
Copy link
Owner

@blowekamp Thank you! applied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants